package m3d30;

import java.io.*;

public class qcopyFile {
    public static void main(String[] args) throws IOException {
        File f = new File("D:\\ideaproject\\basicproject\\day02\\src\\m3d30\\a.txt");
        FileInputStream fis = new FileInputStream(f);
        FileOutputStream fos = new FileOutputStream("D:\\ideaproject\\basicproject\\day02\\src\\m3d30\\r.txt",false);
        byte[] bytes = new byte[1024];
        int len;
        while ((len = fis.read(bytes)) != -1) {
            fos.write(bytes,0,len);
        }

        fis.close();
        fos.close();
    }
}
